const flowableRoutes = [{
        path: "/flowable",
        name: "/",
        redirect: "/flowable/flowstart",
        meta: { title: "审批", icon: "menu-flow" },
        children: [{
                path: "/flowstart",
                name: "flowstart",
                component: () =>
                    import ("@/views/flowable/my-flow/flow-start.vue"),
                meta: { title: "发起申请" },
            },
            {
                path: "/flowappvove",
                name: "flowappvove",
                component: () =>
                    import ("@/views/flowable/my-flow/flow-approve.vue"),
                meta: { title: "待审批" },
            },
            {
                path: "/flowmy",
                name: "flowmy",
                component: () =>
                    import ("@/views/flowable/my-flow/flow-my.vue"),
                meta: { title: "我的申请" },
            },
            {
                path: "/flowcc",
                name: "flowcc",
                component: () =>
                    import ("@/views/flowable/my-flow/flow-cc.vue"),
                meta: { title: "我收到的" },
            },
            {
                path: "/flowrecord",
                name: "flowrecord",
                component: () =>
                    import ("@/views/flowable/my-flow/flow-record.vue"),
                meta: { title: "已审批" },
            },
        ],
    },
    {
        path: "/flowmanage",
        name: "/flowmanage",
        meta: { title: "审批管理", icon: "menu-flow-manage" },
        children: [{
                path: "/flowmanindex/:fromRouteId?",
                name: "flowmanindex",
                component: () =>
                    import ("@/views/flowable/flow-manage/index.vue"),
                meta: { title: "流程分组管理" },
            },
            {
                path: "/flowmanedit/:fromRouteId",
                name: "flowmanedit",
                component: () =>
                    import ("@/views/flowable/flow-manage/flow-edit.vue"),
                // meta: { title: "流程模板管理", transition: "fade-transform" },
                meta: { title: "流程模板管理"},
            },
        ],
    },
    {
        path: "/flowdata",
        name: "/flowdata",
        meta: { title: "数据管理", icon: "menu-flow-data" },
        children: [{
            path: "/flowdataindex",
            name: "/flowdataindex",
            component: () =>
                import ("@/views/flowable/flow-data/index.vue"),
            meta: {},
        }, ],
    },
]

export default flowableRoutes;
